<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta charset="utf-8" />
		<base href="<%=basePath%>">
		<title>发布文章</title>
		<link rel="stylesheet"
			href="assets/plugins/kindeditor/themes/default/default.css" />
		<link rel="stylesheet"
			href="assets/plugins/kindeditor/plugins/code/prettify.css" />
		<link href="assets/css/style.css" rel="stylesheet"/>
		<script charset="utf-8" src="assets/plugins/kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="assets/plugins/kindeditor/lang/zh_CN.js"></script>
		<script charset="utf-8"
			src="assets/plugins/kindeditor/plugins/code/prettify.js"></script>
		<style type="text/css">
				body {
                padding-top:60px;
                padding-bottom:40px;
            }
		</style>
	</head>
	<body>
		<jsp:include page="../Template/home_top.jsp"></jsp:include>
		<div class="container">
			<div class="row">
				<div class="span9">
				<s:iterator value="pageBean.list">
		
					<h3><a href="article_eachArticle?articleId=<s:property value="id"/>">
						<s:property value="title" /> 
					</a></h3>
					<s:property value="content" escapeHtml="false"/>
					<br><hr>
				</s:iterator>
				<br>
				共
				<s:property value="pageBean.allRow" />
				条记录 共
				<s:property value="pageBean.totalPage" />
				页 当前第
				<s:property value="pageBean.currentPage" />
				页
				<br />
		
				<s:if test="%{pageBean.currentPage == 1}">
		            第一页 上一页
		        </s:if>
				<s:else>
					<a href="article_showAll?page=1">第一页</a>
					<a
						href="article_showAll?page=<s:property value="%{pageBean.currentPage-1}"/>">上一页</a>
				</s:else>
				<s:if test="%{pageBean.currentPage != pageBean.totalPage}">
					<a
						href="article_showAll?page=<s:property value="%{pageBean.currentPage+1}"/>">下一页</a>
					<a
						href="article_showAll?page=<s:property value="pageBean.totalPage"/>">最后一页</a>
				</s:if>
				<s:else>
		            下一页 最后一页
		        </s:else>
		   </div>
		   <div class="span3">
            	<div class="well">
            		<div class="">
            			<h3>管理入口</h3>
            		</div>
            		<div class="">
            			<a href="member_memberCenter">用户中心</a>
	                    <br>
	                    <a href="admin/member_memberList">管理员中心</a>
            		</div>
            	</div>
            		
    		</div>
    		</div>
        </div>
  		<div style="margin-bottom:20px;"></div>
    <jsp:include page="../Template/home_footer.jsp"/>
	